package cn.demoncat.util.mysql.entity;

/**
 * Mysql.InnoDB锁
 *
 * SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
 *
 * @author 延晓磊
 * @since 2020年10月09日
 */
public class InnodbLock {

    // 锁ID
    private String lockId;
    // 持锁事务ID
    private String trxId;
    // 锁的模式
    private String lockMode;
    // 锁的类型
    private String lockType;
    // 锁的表
    private String lockTable;

    public InnodbLock(String lockId, String trxId, String lockMode, String lockType, String lockTable) {
        this.lockId = lockId;
        this.trxId = trxId;
        this.lockMode = lockMode;
        this.lockType = lockType;
        this.lockTable = lockTable;
    }

    public InnodbLock() {
        super();
    }

    public String getLockId() {
        return lockId;
    }

    public void setLockId(String lockId) {
        this.lockId = lockId;
    }

    public String getTrxId() {
        return trxId;
    }

    public void setTrxId(String trxId) {
        this.trxId = trxId;
    }

    public String getLockMode() {
        return lockMode;
    }

    public void setLockMode(String lockMode) {
        this.lockMode = lockMode;
    }

    public String getLockType() {
        return lockType;
    }

    public void setLockType(String lockType) {
        this.lockType = lockType;
    }

    public String getLockTable() {
        return lockTable;
    }

    public void setLockTable(String lockTable) {
        this.lockTable = lockTable;
    }
}
